#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 10;
	for (int i = 0; i <= n; i++)
	{
		int a = 1, b = 1;
		for (int x = 0; x < n - i; x++)
			printf(" ");
		for (int j = 0; j <= i; j++)
		{
			if (j == 0 || j == i)
				printf("1 ");
			else
			{
				a *= i - j + 1;
				b *= j;
				printf("%d ", a / b);
			}
		}
		printf("\n");
	}
	return 0;
}